package com.sansan.qiangji.service.impl.base;

import com.sansan.qiangji.entity.base.ProductType;
import com.sansan.qiangji.entity.base.example.ProductTypeExample;
import com.sansan.qiangji.entity.early.EarlyWarning;
import com.sansan.qiangji.entity.early.example.EarlyWarningExample;
import com.sansan.qiangji.mapper.base.ProductTypeMapper;
import com.sansan.qiangji.mapper.early.EarlyWarningMapper;
import com.sansan.qiangji.service.inter.base.ProductTypeService;
import com.sansan.qiangji.service.inter.early.EarlyWarningService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author zhaobc
 * @description
 * @date 2020-11-18
 */
@Service
public class ProductTypeServiceImpl implements ProductTypeService {

    @Autowired
    private ProductTypeMapper productTypeMapper;

    @Override
    public List<ProductType> selectByExample(ProductTypeExample example) {
        return productTypeMapper.selectByExample(example);
    }

    @Override
    public int updateByPrimaryKey(ProductType record) {
        return productTypeMapper.updateByPrimaryKey(record);
    }

    @Override
    public int insertSelective(ProductType record) {
        return productTypeMapper.insertSelective(record);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return productTypeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<Map<String, Object>> getProductTypeList() {
        return productTypeMapper.getProductTypeList();
    }
}
